//
//  MHMoment.h
// MiaoCircle
//
//Created by acgera on 2018/4/9.
//  Copyright © 2018年 acgera. All rights reserved.
//  单条说说

#import "MHObject.h"
#import "MHUser.h"
#import "MHComment.h"
#import "MHPicture.h"
#import "MHMomentShareInfo.h"
#import "MHMomentVideo.h"
#import "MHRecentQA.h"
#import "MHCircleLocationModel.h"
//#import "m"
#import "MHRedInfo.h"
#import "IMAUser.h"

@interface MHMoment : MHObject
/// 正文 content

@property(nonatomic, assign) int circleId;
@property(nonatomic, assign) int32_t autoId;

@property(nonatomic, assign) int32_t quoteRecentId;

@property (nonatomic, readwrite, copy) NSString *text; //content
/// idStr
@property (nonatomic, readwrite, copy) NSString *idstr; //autoId

@property (nonatomic, readwrite, assign) int32_t publishUserId;

@property(nonatomic, copy) NSString *publishUserName;

@property(nonatomic,copy) NSString * publishUserHeadPic;

@property(nonatomic, copy) NSString * allPublishUserHeadPic;

@property(nonatomic, assign) MHCircleIdentityType identType;

/// 点赞数 likeCount
@property (nonatomic, readwrite, assign) int32_t attitudesCount; //likeCount

/// 创建时间
@property (nonatomic, readwrite, strong) NSDate *createdAt;  // publishTime

@property (nonatomic, readwrite, assign) int32_t attitudesStatus; // isHaveLike

@property (nonatomic, readwrite, assign) int32_t isHaveCollect;

@property (nonatomic, readwrite, assign) BOOL isTop;

@property(nonatomic, assign) CGFloat commentCount;


@property (nonatomic, readwrite, assign) int32_t recentId;

//是否是精华
@property (nonatomic, readwrite, assign) BOOL isEssence;


@property (nonatomic, readwrite, assign) MHRecentContentType recentType; //动态类型：1表示动态，2表示提问;

@property (nonatomic, readwrite, assign) int32_t askedUid;

@property(nonatomic, copy) NSString *askedsUserName;

/// 评论数
@property (nonatomic, readwrite, assign) int32_t commentsCount;

@property(nonatomic, strong) MHRecentQA *recentQA;


/// 点赞列表 (可变数组)
@property (nonatomic, readwrite, strong) NSMutableArray <MHUser *> * attitudesList; //likeList

/// 评论列表commentList
@property (nonatomic, readwrite, strong) NSMutableArray <MHComment *> *commentsList; //commentList
/// 用户模型
@property (nonatomic, readwrite, strong) IMAUser *user; // IM用户
/// 图片数组
@property (nonatomic, readwrite, copy) NSArray <MHPicture *> *picInfos; // attmList

/// 微信朋友圈类型 （0 配图  1 video 2 share） //MHCirclComposeType
@property (nonatomic, readwrite, assign) MHMomentExtendType type;

/// 分享内容
@property (nonatomic, readwrite, strong) MHMomentShareInfo *shareInfo;
/// 视频内容
@property (nonatomic, readwrite, strong) MHMomentVideo *videoInfo;


@property(nonatomic, strong) MHRedInfo *redInfo;

@property(nonatomic, assign) BOOL isReplay;



//@property(nonatomic, copy) NSString *askedsUserName;


// 来源 （比如：今日头条、QQ音乐...）
@property (nonatomic, readwrite, copy) NSString *source;

@property(nonatomic, assign) int viewCount;
// 来源可否点击 0 不可点击
@property (nonatomic, readwrite, assign) int32_t sourceAllowClick;
// 点击来源跳转的链接
@property (nonatomic, readwrite, copy) NSString *sourceUrl;
/// 位置 （暴露位置，始终可以点击）
@property (nonatomic, readwrite, strong) MHCircleLocationModel *location;


@property(nonatomic, assign) BOOL shareTimeLine;









@end
